package com.mcb.autopublish.demos.web.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * <p>
 *
 * </p>
 *
 * @author mcb
 * @since 2024/6/12
 */
@Component
public class PropertyCheckRunner implements CommandLineRunner {

    @Value("${my.custom.property}")
    private String customProperty;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("Custom Property Value: " + customProperty);
    }

}
